﻿@model IEnumerable<StartStop.ServiceResources.Usage>
<div id="hero-wrap">
    <div id="hero" class="profile section group">
        <div id="user-profile" class="group">
            @if (Request.IsAuthenticated)
            {
                <text> <a href="/Image/Upload/avatar/">
                </text>
            }
            else
            {
                <text>
                </text>
            }
            <img src="@Url.Content(ViewBag.MediumAvatar)" alt="" /> </a>
            <p>
                Username: <span>@ViewBag.UserGen.Username</span>
            </p>
            <p>
                Member since: <span>@String.Format("{0:dd/MM/yyyy}", ViewBag.UserGen.Joined)</span>
            </p>
        </div>
        <!-- /user-profile -->
        <ul id="user-stats">
            <li id="trophies">Trophies <span>@ViewBag.UserGen.TrophyCount</span></li>
            <li id="friends">Friends <span>@ViewBag.UserGen.NumberOfFriends</span></li>
            <li id="level">Level <span>@ViewBag.UserGen.CurrentLevel</span></li>
        </ul>
        <!-- /user-stats -->
    </div>
    <!-- /hero -->
</div>
<!-- /hero-wrap -->
<div id="profile-wrap">
    <div id="profile" class="section group">
        <div id="bc">
            You are here: <a href="/">Home</a> <a href="/Stats/User/@ViewBag.UserGen.Username">@ViewBag.UserGen.Username</a> <a href="#">Total logged hours</a>
        </div>
        <!-- /breadcrumb -->
        <div id="generic-wrap">
            <h2 class="medium">
                Totals for all time</h2>
            <p class="apps">
                How long would you like the information
                <select>
                    <option>All Time</option>
                </select>
            </p>
            <table class="tbl" cellspacing="0">
                <tr>
                    <th>
                        Activity
                    </th>
                    <th>
                        Time Spent
                    </th>
                    <th class="last">
                        Your rank
                    </th>
                </tr>
                @if (Model != null)
                {
                foreach (var item in Model)
                {
                    <tr>
                        <td>
                                @item.TypeOfUse    
                        </td>
                        <td>
                               @item.TotalTime.ToString("%d") Days @String.Format("{0:hh\\:mm\\:ss}", item.TotalTime)

                        </td>
                        <td>
                            Not implemented
                        </td>
                    </tr>
                }
                }
            </table>
        </div>
        <!-- /generic-wrap -->
    </div>
    <!-- /profile-wrap -->
